<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {block name="title"}<title>我的</title>{/block}
    <link rel="stylesheet" href="/html/css/style2.css">
    <link rel="stylesheet" href="/html/css/style.css">
    <link rel="stylesheet" href="/html/css/amazeui.min.css">

    <script src="/html/js/jquery-1.10.2.min.js"></script>
    <script src="/html/js/amazeui.min.js"></script>
    <script>
        var iScale = 1;
        iScale = iScale / window.devicePixelRatio;
        document.write('<meta name="viewport" content="width=device-width,user-scalable=no,' +
            'initial-scale=' + iScale + ',minimum-scale=' + iScale + ',maximum-scale=' + iScale + '">');
    </script>
</head>
{block name="content"}{/block}
<script>
    $(function(){
        //动态更新fontsize
        var width = $(document).width();
        var size = width/16;
        console.log(size);
        $('html').css('fontSize',size+'px');

    })
</script>
{block name="js"}{/block}
</html>